{% for item in items %}
<span>{{ item }}</span>
{% else %}
<span>no items</span>
{% endfor %}